<%-include('./manage/header.html')%>
<%-include('./manage/left.html')%>
<div class="layui-body">
	<!-- 内容主体区域 -->
	<div id="mainWrap" style="padding: 15px;">
		<div class="layui-btn-group demoTable">
			<button class="layui-btn" data-type="getCheckData">获取选中行数据</button>
			<button class="layui-btn" data-type="getCheckLength">获取选中数目</button>
			<button class="layui-btn" data-type="isAll">验证是否全选</button>
		</div>

		<table class="layui-table" lay-data="{ url:'/demo/table/user/', page:true, id:'test1'}" lay-filter="test1">
			<thead>
				<tr>
					<th lay-data="{checkbox:true, fixed: true}"></th>
					<th lay-data="{field:'id', width:80, sort: true, fixed: true}">ID</th>
					<th lay-data="{field:'username', width:80}">用户名</th>
					<th lay-data="{field:'sex', width:80, sort: true}">性别</th>
					<th lay-data="{field:'city', width:80}">城市</th>
					<th lay-data="{field:'sign', width:177}">签名</th>
					<th lay-data="{field:'experience', width:80, sort: true}">积分</th>

					<th lay-data="{field:'classify', width:80}">职业</th>
					<th lay-data="{field:'wealth', width:135, sort: true}">财富</th>
					<th lay-data="{field:'score', width:160, sort: true, fixed: 'right'}">评分</th>
					<th lay-data="{fixed: 'right', width:160, align:'center', toolbar: '#barDemo'}"></th>
				</tr>
			</thead>
		</table>
	</div>
</div>
<%-include('./manage/footer.html')%>
<script src="/app/static/js/admin_list.js"></script>
<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-mini" lay-event="detail">查看</a>
  <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a> 
</script>